package csse3004.GD.PM;

/**
 *
 * @author s4201567 Tony Yu
 */
import java.util.ArrayList;
import org.springframework.web.servlet.mvc.SimpleFormController;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.ServletException;

public class ReportDemoController extends SimpleFormController {

    public ModelAndView onSubmit(Object command) throws ServletException {
        ArrayList<EntityHierarchy> resultList = new ArrayList<EntityHierarchy>();
        resultList = EntityHierarchy.genTempEntityHierarchy();
        return new ModelAndView("reportQuestionResult", "searchResult", resultList);
    }
}
